package com.ruoyi.system.downloadexception;

import java.io.IOException;

/**
     * 自定义下载中断异常
     */
    public  class DownloadInterruptedException extends IOException {
    private final long bytesTransferred;

    public DownloadInterruptedException(long bytesTransferred, String message) {
        super(message);
        this.bytesTransferred = bytesTransferred;
    }

    public long getBytesTransferred() {
        return bytesTransferred;
    }
    }
